<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-day vector-sticky-header-enabled" lang="de" dir="ltr"><head>
<meta charset="UTF-8">
<title>Message-Digest Algorithm 2</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./_res_/favicon.png">
<link rel="canonical" href="https://de.wikipedia.org/wiki/Message-Digest_Algorithm_2"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.math.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link href="./_mw_/ext.gadget.citeRef.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.defaultPlainlinks.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonHide.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonLayout.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonStyle.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiDarkmode.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiResponsive.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.specialSearch.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
<link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
<link rel="stylesheet" type="text/css" href="./_res_/footer.css">
<link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Message-Digest_Algorithm_2 rootpage-Message-Digest_Algorithm_2 skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Message-Digest Algorithm 2</span></h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="contentSub">
<div id="mw-content-subtitle"></div>
</div>
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="de" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="de" dir="ltr"><table class="float-right infobox wikitable" style="font-size:90%; margin-top:0; width:23em;">
<tbody><tr>
<th class="hintergrundfarbe6" colspan="2" style="font-size:105%;">MD2
</th></tr>
<tr>
<td>Entwickler
</td>
<td><a href="Ronald_L._Rivest" title="Ronald L. Rivest">Ronald L. Rivest</a>
</td></tr>
<tr>
<td>Veröffentlicht
</td>
<td>1989
</td></tr>
<tr>
<td>Länge des Hashwertes (Bit)
</td>
<td>128
</td></tr>
<tr>
<td>Konstruktion
</td>
<td><a href="Merkle-Damg%C3%A5rd-Konstruktion" title="Merkle-Damgård-Konstruktion">Merkle-Damgård-Konstruktion</a> mit Prüfsumme
</td></tr>
<tr>
<td>Runden
</td>
<td>18
</td></tr>
<tr>
<th class="hintergrundfarbe6" colspan="2">Beste bekannte Kryptoanalyse
</th></tr>
<tr>
<td colspan="2" style="text-align:center;">Preimage-Angriff mit Komplexität <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2^{73}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>73</mn>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 2^{73}}</annotation>
</semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/97d5562766ee7307cef5f58c452c014a3aa76758.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:3.039ex; height:2.676ex;" alt="{\displaystyle 2^{73}}" loading="lazy"></span>,<sup id="cite_ref-joc10_1-0" class="reference"><a href="#cite_note-joc10-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> Kollisionsangriff mit Komplexität <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2^{63,3}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mn>2</mn>
<mrow class="MJX-TeXAtom-ORD">
<mn>63</mn>
<mo>,</mo>
<mn>3</mn>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 2^{63,3}}</annotation>
</semantics>
</math></span><img src="./_assets_/eb734a37dd21ce173a46342d1cc64c92/e7352a48ee0b1b60777fd824fc1d319c63a70fc9.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:4.318ex; height:2.676ex;" alt="{\displaystyle 2^{63,3}}" loading="lazy"></span><sup id="cite_ref-joc10_1-1" class="reference"><a href="#cite_note-joc10-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</td></tr></tbody></table>
<p><b>Message-Digest Algorithm 2</b> (MD2) ist eine von <a href="Ronald_L._Rivest" title="Ronald L. Rivest">Ronald L. Rivest</a> im Jahr <a href="1988" title="1988">1988</a> veröffentlichte <a href="Kryptographische_Hashfunktion" title="Kryptographische Hashfunktion">kryptographische Hashfunktion</a>. Der <a href="Algorithmus" title="Algorithmus">Algorithmus</a> wurde für 8-<a href="Bit" title="Bit">Bit</a> Rechner optimiert. Der Hashwert einer beliebigen Nachricht wird gebildet, indem zunächst die Nachricht auf ein Vielfaches der Blocklänge (128 Bit bzw. 16 <a href="Byte" title="Byte">Byte</a>) gebracht und dann eine <a href="Pr%C3%BCfsumme" title="Prüfsumme">Prüfsumme</a> von 16 Byte Länge angehängt wird. Für die eigentliche Berechnung werden ein Hilfsblock mit 48 Byte sowie eine 256 Byte lange Substitutionstabelle, die abhängig von der Zahl <a href="Kreiszahl" title="Kreiszahl">π</a> permutiert wurde, verwendet. Die Substitutionstabelle bewirkt innerhalb des Algorithmus eine "zufällige" und nichtlineare Substitutionsoperation.
</p><p>Nachdem alle Blöcke der (verlängerten) Nachricht bearbeitet worden sind, bildet der erste Teilblock des Hilfsblockes den Hashwert der Nachricht.
</p><p>Aufgrund von Sicherheitsbedenken wird die Funktion seit 2009 nicht mehr empfohlen, stattdessen sollte <a href="SHA-2" title="SHA-2">SHA-2</a> oder <a href="SHA-3" title="SHA-3">SHA-3</a> verwendet werden.
</p>
<div class="mw-heading mw-heading2"><h2 id="MD2-Hashes">MD2-Hashes</h2></div>
<p>Die 128 Bit langen MD2-Hashes (englisch auch <i>message-digests</i>) werden normalerweise als 32-stellige <a href="Hexadezimal" class="mw-redirect" title="Hexadezimal">Hexadezimalzahl</a> notiert. Folgendes Beispiel zeigt eine 59 Byte lange <a href="ASCII" class="mw-redirect" title="ASCII">ASCII</a>-Eingabe und den zugehörigen MD2-Hash:
</p>
<pre>md2("Franz jagt im komplett verwahrlosten Taxi quer durch Bayern") =
8415570a6653a06314f09b023612a92d
</pre>
<p>Eine kleine Änderung der Nachricht erzeugt (mit sehr großer Wahrscheinlichkeit) einen komplett anderen Hash. Mit Frank statt Franz ergibt sich:
</p>
<pre>md2("Frank jagt im komplett verwahrlosten Taxi quer durch Bayern") =
b0e27e91b84246bc4c38bc3008f00374
</pre>
<p>Der Hash einer <a href="Zeichenkette" title="Zeichenkette">Zeichenkette</a> der Länge Null ist:
</p>
<pre>md2("") = 8350e5a3e24c153df2275c9f80692773
</pre>
<div class="mw-heading mw-heading2"><h2 id="Weblinks">Weblinks</h2></div>
<ul><li>B. Kaliski: <i><a href="Request_for_Comments" title="Request for Comments">RFC</a>: <style data-mw-deduplicate="TemplateStyles:r250917974">
/* start https://de.wikipedia.org/ */
.mw-parser-output .dewiki-iconexternal>a{background-position:center right!important;background-repeat:no-repeat!important}body.skin-minerva .mw-parser-output .dewiki-iconexternal>a{background-image:url("./_mw_/OOjs_UI_icon_external-link-ltr-progressive.svg")!important;background-size:10px!important;padding-right:13px!important}body.skin-timeless .mw-parser-output .dewiki-iconexternal>a,body.skin-monobook .mw-parser-output .dewiki-iconexternal>a{background-image:url("./_mw_/MediaWiki_external_link_icon.svg")!important;padding-right:13px!important}body.skin-vector .mw-parser-output .dewiki-iconexternal>a{background-image:url("./_mw_/Link.ernal-small-ltr-progressive.svg")!important;background-size:0.857em!important;padding-right:1em!important}
/* end https://de.wikipedia.org/ */
</style><span class="dewiki-iconexternal"><a href="https://datatracker.ietf.org/doc/html/rfc1319" class="extiw external" title="rfc:1319">1319</a></span></i> – <i><span lang="en">Message-Digest Algorithm</span></i>. April 1992 (englisch).</li>
<li>John Linn: <i><a href="Request_for_Comments" title="Request for Comments">RFC</a>: <span class="dewiki-iconexternal"><a href="https://datatracker.ietf.org/doc/html/rfc1115#section-4.2" class="extiw external" title="rfc:1115">1115</a></span></i> – <i><span lang="en">Privacy Enhancement for Internet Electronic Mail: Part III – Algorithms, Modes, and Identifiers</span></i>. August 1989, Abschnitt 4.2 (mit Quellcode von Ronald L. Rivest 1. Oktober 1988, englisch).</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Einzelnachweise">Einzelnachweise</h2></div>
<ol class="references">
<li id="cite_note-joc10-1"><span class="mw-cite-backlink">↑ <sup><a href="#cite_ref-joc10_1-0">a</a></sup> <sup><a href="#cite_ref-joc10_1-1">b</a></sup></span> <span class="reference-text">
Lars R. Knudsen, John Erik Mathiassen, Frédéric Muller, Søren S. Thomsen: <cite style="font-style:italic">Cryptanalysis of MD2</cite>. In: <cite style="font-style:italic">Journal of Cryptology</cite>. <span style="white-space:nowrap">Band<span style="display:inline-block;width:.2em"> </span>23</span>, <span style="white-space:nowrap">Nr.<span style="display:inline-block;width:.2em"> </span>1</span>. Springer, 2010, <span style="white-space:nowrap">S.<span style="display:inline-block;width:.2em"> </span>72–90</span>, <a href="Digital_Object_Identifier" title="Digital Object Identifier">doi</a>:<span class="uri-handle" style="white-space:nowrap"><a rel="nofollow" class="external text" href="https://doi.org/10.1007/s00145-009-9054-1">10.1007/s00145-009-9054-1</a></span>.<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rfr_id=info:sid/de.wikipedia.org:Message-Digest+Algorithm+2&rft.atitle=Cryptanalysis+of+MD2&rft.au=Lars+R.+Knudsen%2C+John+Erik+Mathiassen%2C+Fr%C3%A9d%C3%A9ric+Muller%2C+...&rft.date=2010&rft.doi=10.1007%2Fs00145-009-9054-1&rft.genre=journal&rft.issue=1&rft.jtitle=Journal+of+Cryptology&rft.pages=72-90&rft.pub=Springer&rft.volume=23" style="display:none"> </span></span>
</li>
</ol></div><!--htdig_noindex--><div><div class="zim-footer">
Dieser Artikel wurde von <a class="external text" title="Zuletzt bearbeitet am 2025-03-09" href="https://de.wikipedia.org/wiki/?title=Message-Digest_Algorithm_2&oldid=254033246">Wikipedia</a> herausgegeben. Der Text ist unter <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.de">Creative Commons Attribution-Share Alike 4.0</a> verfügbar, sofern nicht anders angegeben. Für die Mediendateien können zusätzliche Bedingungen gelten.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
<script src="./_webp_/webpHandler.js"></script>
</body></html>